package com.hjh.thymeleafdemo1.Service;
import com.hjh.thymeleafdemo1.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserService {
    public User login(String name, String password);
    public boolean insertUser(User user);
    public boolean deleteUser(Long id);
    public int updateUser(User user);
    public User getUser(Long id);
    public List<User> findAllUsers();

    public User getUserByName(String name);
    // 查询用户列表
//    public List<User> queryUserList();
}
